        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        header {
            background: #3498db;
            color: white;
            padding: 20px;
            text-align: center;
        }

        h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 16px;
            opacity: 0.9;
        }

        .main-content {
            display: flex;
            flex-wrap: wrap;
            padding: 20px;
        }

        .qr-section,
        .print-section {
            flex: 1;
            min-width: 300px;
            padding: 20px;
        }

        .section-title {
            font-size: 20px;
            margin-bottom: 20px;
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
        }

        .qr-container {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .qr-code {
            width: 200px;
            height: 200px;
            margin: 0 auto 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            background: white;
            padding: 10px;
        }

        .qr-code img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .status {
            font-size: 14px;
            color: #7f8c8d;
            margin-top: 10px;
        }

        .print-queue {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            min-height: 200px;
            max-height: 300px;
            overflow-y: auto;
        }

        .queue-item {
            background: white;
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .queue-item .file-info {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .file-icon {
            width: 30px;
            height: 30px;
            border-radius: 5px;
            margin-right: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 12px;
            flex-shrink: 0;
        }

        .file-icon.pdf {
            background-color: #e74c3c;
        }

        .file-icon.doc {
            background-color: #3498db;
        }

        .file-icon.docx {
            background-color: #3498db;
        }

        .file-icon.jpg {
            background-color: #f39c12;
        }

        .file-icon.jpeg {
            background-color: #f39c12;
        }

        .file-icon.png {
            background-color: #2ecc71;
        }

        .file-icon.txt {
            background-color: #7f8c8d;
        }

        .file-details {
            font-size: 12px;
            color: #7f8c8d;
        }

        .print-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
            flex-shrink: 0;
        }

        .print-btn:hover {
            background: #2980b9;
        }

        .print-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }

        .controls {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2列等宽布局 */
            gap: 10px; /* 按钮之间的间距 */
            align-items: center; /* 垂直居中对齐 */
        }
        /* 移除按钮原有底部外边距，改用grid的gap控制间距 */
        .controls > div,
        .controls > button {
            padding: 6px 12px;
            font-size: 14px;
            margin-bottom: 0 !important;
        }
        /* 让按钮在单元格内右对齐（保持原样式的右对齐特性） */
        .controls > div {
            justify-self: end;
        }

        /* 调整按钮大小保持一致（可选，根据需要调整） */
        .controls .btn {
            padding: 6px 12px;
            font-size: 14px;
            min-width: 120px; /* 确保按钮宽度一致 */
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
            flex: 1;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
        }

        .btn-secondary {
            background: #e74c3c;
            color: white;
        }

        .btn-secondary:hover {
            background: #c0392b;
        }

        .instructions {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }

        .instructions h3 {
            margin-bottom: 15px;
            color: #2c3e50;
        }

        .instructions ol {
            margin-left: 20px;
            line-height: 1.6;
        }

        .instructions li {
            margin-bottom: 10px;
        }

        footer {
            text-align: center;
            padding: 20px;
            background: #2c3e50;
            color: #ecf0f1;
            font-size: 14px;
        }

        .status-indicator {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 5px;
        }

        .status-online {
            background-color: #2ecc71;
        }

        .status-offline {
            background-color: #e74c3c;
        }

        .status-waiting {
            background-color: #f39c12;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            background: white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 1000;
            max-width: 350px;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            border-left: 4px solid #2ecc71;
        }

        .notification.error {
            border-left: 4px solid #e74c3c;
        }

        .notification.warning {
            border-left: 4px solid #f39c12;
        }

        .print-options {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }

        .print-options h4 {
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .option-group {
            margin-bottom: 10px;
        }

        .option-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .option-group select {
            width: 100%;
            padding: 8px;
            border-radius: 4px;
            border: 1px solid #ddd;
        }

        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }

            .qr-section,
            .print-section {
                width: 100%;
            }

            .controls {
                flex-direction: column;
            }
        }
        /* 打印机选择样式 */
        .option-group {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            gap: 8px;
        }

        .option-group label {
            min-width: 80px;
            font-weight: 500;
        }

        .option-group select {
            flex: 1;
            padding: 6px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background: white;
        }

        .btn-small {
            padding: 4px 8px;
            font-size: 12px;
            border-radius: 4px;
            background: #f0f0f0;
            border: 1px solid #ddd;
            cursor: pointer;
        }

        .btn-small:hover {
            background: #e0e0e0;
        }

        .btn-small:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        /* 自动打印选项样式 */
        .option-group {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            gap: 10px;
        }

        .option-group label {
            min-width: 80px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        /* 复选框样式 */
        .option-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
            cursor: pointer;
            accent-color: #007bff; /* 现代浏览器的简单样式 */
            transition: all 0.2s ease;
        }
